Class MainWindowViewModel
Inheritance
System.Object
MainWindowViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageDemo.Viewmodels
Assembly: ImageDemo.dll
Syntax
public class MainWindowViewModel : INotifyPropertyChanged
Constructors
MainWindowViewModel()
Declaration
public MainWindowViewModel()
Properties
AlgorithmList
List rozpoznavacich algoritmu
Declaration
public List<string> AlgorithmList { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
DetectedFacesCount
Declaration
public int DetectedFacesCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
DetectedList
Declaration
public ObservableCollection<DetectedFace> DetectedList { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.ObservableCollection<DetectedFace> |
DetectFacesCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Detekovat tvare
Declaration
public ICommand DetectFacesCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
FrameName
Declaration
public string FrameName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LoadedImage
Declaration
public BitmapSource LoadedImage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Imaging.BitmapSource |
LoadImageCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Nacist obrazek
Declaration
public ICommand LoadImageCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
LoadTokenCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Nacist token
Declaration
public ICommand LoadTokenCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
ProcessedImage
Declaration
public BitmapSource ProcessedImage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Imaging.BitmapSource |
RecognizeCommand
Vrati Command, ktery se spusti po stisknuti tlacika Rozpoznat tvare
Declaration
public ICommand RecognizeCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
SaveAllCommand
Vrati Command, ktery se spusti po stisknuti tlacika Ulozit vsechny snimky
Declaration
public ICommand SaveAllCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
SelectedAlgorithm
Declaration
public int SelectedAlgorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Convert(Bitmap, PixelFormat)
Metoda pro prevedeni obrazu z formatu Bitmap na format BitmapSource
Declaration
public BitmapSource Convert(Bitmap bitmap, PixelFormat pf)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Bitmap | bitmap | |
| System.Windows.Media.PixelFormat | pf |
Returns
| Type | Description |
|---|---|
| System.Windows.Media.Imaging.BitmapSource |
Events
PropertyChanged
Event pro zajisteni bindovani a propsani zmen
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged